[gd_scene load_steps=9 format=1]

[ext_resource path="res://scripts/weapons/shot_base.gd" type="Script" id=1]
[ext_resource path="res://scripts/shader/dbl_brightness.tres" type="Shader" id=2]
[ext_resource path="res://images/weapons/shot11.png" type="Texture" id=3]
[ext_resource path="res://images/lights/light_small.png" type="Texture" id=4]

[sub_resource type="CapsuleShape2D" id=5]

custom_solver_bias = 0.0
radius = 3.0
height = 24.0

[sub_resource type="CanvasItemMaterial" id=2]

shader/shader = ExtResource( 2 )
shader/shading_mode = 0

[sub_resource type="Animation" id=3]

length = 0.1
loop = false
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:visibility/self_opacity")
tracks/0/interp = 1
tracks/0/imported = false
tracks/0/keys = { "times":FloatArray( 0, 0.1 ), "transitions":FloatArray( 1, 1 ), "update":0, "values":[ 0.0, 1.0 ] }
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:transform/scale")
tracks/1/interp = 1
tracks/1/imported = false
tracks/1/keys = { "times":FloatArray( 0, 0.1 ), "transitions":FloatArray( 1, 1 ), "update":0, "values":[ Vector2( 0.4, 0.3 ), Vector2( 0.5, 0.8 ) ] }
tracks/2/type = "value"
tracks/2/path = NodePath("Light:energy")
tracks/2/interp = 1
tracks/2/imported = false
tracks/2/keys = { "times":FloatArray( 0, 0.1 ), "transitions":FloatArray( 1, 1 ), "update":0, "values":[ 0.0, 1.5 ] }

[sub_resource type="Animation" id=4]

length = 0.2
loop = false
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:visibility/self_opacity")
tracks/0/interp = 1
tracks/0/imported = false
tracks/0/keys = { "times":FloatArray( 0, 0.03, 0.1 ), "transitions":FloatArray( 1, 1, 1 ), "update":0, "values":[ 1.0, 1.0, 0.0 ] }
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:transform/scale")
tracks/1/interp = 1
tracks/1/imported = false
tracks/1/keys = { "times":FloatArray( 0, 0.1 ), "transitions":FloatArray( 1, 1 ), "update":0, "values":[ Vector2( 0.5, 0.8 ), Vector2( 0.4, 0.1 ) ] }
tracks/2/type = "method"
tracks/2/path = NodePath(".")
tracks/2/interp = 1
tracks/2/imported = false
tracks/2/keys = { "times":FloatArray( 0.2 ), "transitions":FloatArray( 1 ), "values":[ { "args":[  ], "method":"queue_free" } ] }
tracks/3/type = "value"
tracks/3/path = NodePath("Light:energy")
tracks/3/interp = 1
tracks/3/imported = false
tracks/3/keys = { "times":FloatArray( 0, 0.2 ), "transitions":FloatArray( 1, 1 ), "update":0, "values":[ 1.5, 0.0 ] }

[node name="Shot" type="Area2D"]

input/pickable = true
shapes/0/shape = SubResource( 5 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 10 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
script/script = ExtResource( 1 )
__meta__ = { "__editor_plugin_screen__":"2D" }

[node name="Sprite" type="Sprite" parent="."]

visibility/self_opacity = 0.0
visibility/light_mask = 0
material/material = SubResource( 2 )
transform/scale = Vector2( 0.4, 0.3 )
texture = ExtResource( 3 )
offset = Vector2( 0, 24 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]

visibility/visible = false
transform/pos = Vector2( 0, 10 )
shape = SubResource( 5 )
trigger = false
_update_shape_index = 0

[node name="Light" type="Light2D" parent="."]

transform/pos = Vector2( 0, 2 )
enabled = true
texture = ExtResource( 4 )
offset = Vector2( 0, 0 )
scale = 2.0
color = Color( 1, 0.627451, 0, 1 )
energy = 0.0
mode = 0
range/height = 0.0
range/z_min = -1024
range/z_max = 1024
range/layer_min = 0
range/layer_max = 0
range/item_mask = 1
shadow/enabled = false
shadow/color = Color( 0, 0, 0, 0 )
shadow/buffer_size = 2048
shadow/esm_multiplier = 80.0
shadow/item_mask = 1

[node name="Timer" type="Timer" parent="."]

process_mode = 1
wait_time = 1.0
one_shot = true
autostart = false

[node name="Anim" type="AnimationPlayer" parent="."]

playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/create = SubResource( 3 )
anims/fade_out = SubResource( 4 )
playback/active = true
playback/speed = 1.0
blend_times = [  ]
autoplay = "create"

[connection signal="body_enter" from="." to="." method="_on_body_enter"]

[connection signal="timeout" from="Timer" to="." method="disable"]


